﻿using System;
using System.Collections.Generic;
using Color = System.Drawing.Color;
using SwinGame;

namespace Jumpman.src
{
    public class Blocks:IDrawable
    {
       private const int BLOCK_SIZE = 50;
        private Sprite drawableSprite;

        public Sprite DrawableSprite
        {
            get { return drawableSprite; }
            set { drawableSprite = value; }
        }
        public Blocks(int x, int y)
        {
            drawableSprite = Sprites.CreateSprite(Resources.LoadBitmap("floor.png"));
            drawableSprite.X = x * BLOCK_SIZE;
            drawableSprite.Y = y * BLOCK_SIZE;
        }

        public void Draw()
        {
            drawableSprite.Draw();
        }
    }
}
